package com.itwh.project.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itwh.project.common.Constant;
import com.itwh.project.common.DataGridView;
import com.itwh.project.domain.Department;
import com.itwh.project.service.DepartmentService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 部门 前端控制器
 * </p>
 *
 * @author 翁煌
 * @since 2020-07-05
 */
@RestController
public class DepartmentController {

    @Autowired
    private DepartmentService departmentService;


    @ApiOperation(value = "加载所有可用的学院")
    @GetMapping("loadAllDepartemntForSelect")
    public DataGridView loadAllDepartemntForSelect() {

        return departmentService.loadAllDepartemntForSelect();
    }
}

